
import request from '@/utils/request'

// 查询YmCompany列表
export function listYmCompany(query) {
    return request({
        url: '/api/v1/companyList',
        method: 'get',
        params: query
    })
}

// 查询YmCompany详细
export function getYmCompany (companyId) {
    return request({
        url: '/api/v1/company/' + companyId,
        method: 'get'
    })
}


// 新增YmCompany
export function addYmCompany(data) {
    return request({
        url: '/api/v1/company',
        method: 'post',
        data: data
    })
}

// 修改YmCompany
export function updateYmCompany(data) {
    return request({
        url: '/api/v1/company',
        method: 'put',
        data: data
    })
}

// 删除YmCompany
export function delYmCompany(companyId) {
    return request({
        url: '/api/v1/company/' + companyId,
        method: 'delete'
    })
}
